package com.zzf.观察者模式;

public class Test {

    public static void main(String[] args) {
        Goods goods = new Goods(100);
        goods.addObserver(new Manager());
        goods.addObserver(new Customer());
        goods.addObserver(new Productor());

        //goods.setPrice(102);
        goods.setPrice(93);
    }
}
